package com.czk.model.proxy.staticproxy;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/4/27 21:41
 */
// 代理类
public class TeacherDaoProxy implements ITeacherDao {
    private ITeacherDao iTeacherDao;
    public TeacherDaoProxy(ITeacherDao iTeacherDao){
        this.iTeacherDao=iTeacherDao;
    }
    @Override
    public void teach() {
        System.out.println("代理开始");
        iTeacherDao.teach();
        System.out.println("代理结束");
    }
}
